export default function formData(params:{[key:string]:string}) {
    const encode = encodeURIComponent;
    const pair = [];
    for (const name in params) {
        pair.push([encode(name), encode(params[name])].join('='));
    }
    return pair.join('&');
}